package org.mzy.basic.constant;

/**
 * 公共常量
 */
public class BaseConstants {


    public class VerfityCodeCons {
        // 手机号注册 验证码的rediskey
        public static final String REGISTER_SMSCODE_PHONE = "register:smscode:%s";
        // 绑定 验证码的rediskey
        public static final String BINDER_SMSCODE_PHONE = "binder:smscode:%s";
        // 用户名
        public static final String UID = "mzy4188";
        // 短信密钥
        public static final String KEY = "BD41876688A0BD160912FABBA2E57D88";
    }

    public class WechatCodeConstant {
        // 微信开放平台的addId
        public static final String APPID = "wxd853562a0548a7d0";
        // 微信开放平台的secret
        public static final String SECRET = "4a5d5615f93f24bdba2ba8534642dbb6";
        // 微信登陆请求获取token 地址
        public static final String TOKEN_URL = "https://api.weixin.qq.com/sns/oauth2/access_token?appid=%s&secret=%s&code=%s&grant_type=authorization_code";
        // 微信登陆请求获取用户信息
        public static final String USER_INFO = "https://api.weixin.qq.com/sns/userinfo?access_token=%s&openid=%s";
    }

}
